import { network } from '@/utils';
import { TableListParams, RechargeParams } from './data';

import { partner } from '../../../../../config/Apis';

export async function queryRechargeMoneyList(params: TableListParams) {
  params._content_type = 'json';
  return network.get(partner.account_recharge_query, {
    params,
  });
}

export async function rechargeMoney(params: RechargeParams) {
  params._content_type = 'json';
  return network.get(partner.account_recharge_weali_submit, {
    params,
  });
}

export async function queryOrderStatus(params: RechargeParams) {
  params._content_type = 'json';
  return network.get(partner.account_recharge_pay_query, {
    params,
  });
}
